package com.dragon.sdgp.util.regexpDecode.handler;

import lombok.Data;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * @AUTHOR : Dragon_Yang
 * @File : MetaData
 * @DESCRIPTION :
 * @DATE : 2023/3/4 17:56
 */
@Data
public class MetaData {
    List<Integer> span; //范围型
    LinkedList<Integer> option; //单体型
    String chars;   //字符串整体型
    int minCount;
    int maxCount;
    boolean not;    //取非

    public MetaData(List<Integer> span, LinkedList<Integer> options, int minCount, int maxCount) {
        this.span = span;
        this.option = options;
        this.minCount = minCount;
        this.maxCount = maxCount;
    }

    public MetaData() {
        this(new ArrayList<>(), new LinkedList<>(), 0, 0);
    }
}
